﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SuuntoWebsite.Events._201205
{
    public partial class Question : System.Web.UI.Page
    {
        protected string userName = string.Empty;
        protected string userId = string.Empty;
        protected string rewrite = System.Configuration.ConfigurationManager.AppSettings["rewriteType"];
        protected void Page_Load(object sender, EventArgs e)
        {
            userName = Public.Cookie.UserName;
            userId = Public.Cookie.UserId;
            if(userId.Equals("0"))
                Response.Redirect("./registration" + rewrite);
        }
    }
}
